<template>
	<view class="page">
		<!-- <CustomNav :isBack="true" :topBgColor="topBgColor" title="招商引资" color="#000"></CustomNav> -->
		<view class="village-page page">
			<view class="title">{{detail.title}}</view>
			<view class="time">{{detail.createTime}}</view>
			<view class="content">
				<mp-html :content="detail.content"></mp-html>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				topBgColor: 'rgba(0,0,0,0)',
				detail: {},
				id: null
			}
		},
		methods: {

		},
		onLoad() {
			const eventChannel = this.getOpenerEventChannel();
			// 监听 'acceptData' 事件
			eventChannel.on('acceptData', (data) => {
				this.detail = data.data; // 获取传递的数据
			});
		},
		onUnload() {
			this.eventChannel.off('acceptData');
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		overflow: hidden;
		height: 100%;
		background-image: linear-gradient(to bottom, #4a8dff, #F8F8F8 400px, #F8F8F8 400px, #F8F8F8);
		background-repeat: no-repeat;

		.village-page {
			margin-top: 90rpx;
			padding: 30rpx;
			background: #fff;

			.title {
				font-weight: bold;
				font-size: 34rpx;
			}

			.time {
				font-size: 28rpx;
				color: #999;
				margin: 20rpx 0;
			}
		}
	}
</style>